extend blog_layout
block page
	h1.page-header 文章列表
		.pull-right.btn-group
			a.btn.btn-default(href="#/blog/new") 添加

			a.btn.btn-default(href="/main/index#blog",target="_blank") 预览

	table.table.table-striped.table-hover
		thead
			th 标题
			th 日期
			th 状态
		tr.pointer(ng-repeat = "blog in blogList",ng-click="detailView(blog)")
			td {{blog.title}}
			td {{blog.create_time | date: 'yyyy-MM-dd'}}
			th 
				label.label(class="label-{{blog.active?'info':'danger'}}")
					{{blog.active?'显示':'隐藏'}}